package com.dzsw.runnable;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class CustomRunnable implements Runnable {

    private static Logger logger = LogManager.getLogger(CustomRunnable.class);

    @Override
    public void run() {
        logger.info("CustomThread run");
        try {
            Thread.sleep(10 * 1000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }
        logger.info("CustomThread success!");
    }
}
